package com.gullmall.common.constant;

public class ProductConstant {

    public enum AttrEnum {
        ATTR_TYPE_BASE(1, "基本属性"),
        ATTR_TYPE_SALE(0, "销售属性");
        private Integer code;
        private String msg;

        AttrEnum(Integer code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public Integer getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    public enum SpuStatusEnum{
        CREATE_STATUS(-1,"新建"),
        DOWN_STATUS(0,"下架"),
        UP_STATUS(1,"上架");
        private Integer code;
        private String msg;
        SpuStatusEnum( Integer code,String msg){
            this.code=code;
            this.msg=msg;
        }
        public Integer getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    public enum AttrSearchStatusEnum{
        NO_SEARCH(0,"不可被检索"),
        SEARCH(1,"可被检索");
        private Integer code;
        private String msg;
        AttrSearchStatusEnum( Integer code,String msg){
            this.code=code;
            this.msg=msg;
        }
        public Integer getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }
}
